home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-screenplay-
/
hd_installers
/
whdigames
/
whdigamesa-b
/
burningrubber.lha
/
BurningRubberHD
/
Install_AGA
< prev
next >
Wrap
Text File
|
1980-02-15
|
6KB
|
313 lines
;****************************
(set #sub-dir "data") ;sub directory containing data files
(set #readme-file "BurningRubber.readme") ;name of readme file
(set #last-disk 1) ;amount of disks
(set #disk-size 29184) ;size of each disk
;****************************
;----------------------------
; Checks if given program is reachable via the path
; if not abort install
; IN: #program - to check
; OUT: -
(procedure P_chkrun
(if
(= 0 (run ("cd SYS:\nWhich %s" #program)))
("")
(abort ("You must install \"%s\" first !\nIt must be accessible via the path.\nYou can find it in the whdload package." #program))
)
)
;----------------------------
; Create disk-Image using DIC
; IN: #dest - DestinationPath
; #CI_diskname - DiskName
; #CI_diskno - DiskNumber
; #CI_drive - DriveToReadFrom
; OUT: -
(procedure P_disk
(askdisk
(dest #AD_disk)
(prompt ("\nInsert Disk \"%s\" in any drive !" #AD_disk))
(help @askdisk-help)
)
)
(procedure P_image
(if
(= 0
(run ("cd \"%s\"\nDIC %s FD=%ld LD=%ld SIZE=%ld >CON:///1000//CLOSE" #dest #CI_drive #CI_diskno #CI_diskno #disk-size))
)
("")
(abort "\"DIC\" has failed to create a diskimage")
)
)
;****************************
(if
(exists #readme-file)
(if
(= 0 (run ("SYS:Utilities/Multiview %s" #readme-file)))
("")
(run ("SYS:Utilities/More %s" #readme-file))
)
)
(set #program "WHDLoad")
(P_chkrun)
(set #program "DIC")
(P_chkrun)
; in expert mode ask for source drive
(if
(= @user-level 2)
(
(set #CI_drive
(askchoice
(prompt "Select source drive for diskimages")
(default 0)
(choices "DF0:" "DF1:" "RAD:" "Enter Device")
(help @askchoice-help)
)
)
(select #CI_drive
(set #CI_drive "DF0:")
(set #CI_drive "DF1:")
(set #CI_drive "RAD:")
(set #CI_drive
(askstring
(prompt "Select source drive for diskimages")
(default "DF0:")
(help @askstring-help)
)
)
)
)
(set #CI_drive "DF0:")
)
(set @default-dest
(askdir
(prompt ("Where should \"%s\" installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(set #dest (tackon @default-dest @app-name))
(if
(exists #dest)
(
(set #choice
(askbool
(prompt ("\nDirectory \"%s\" already exists.\n Should it be deleted ?" #dest))
(default 1)
(choices "Delete" "Skip")
(help @askbool-help)
)
)
(if
(= #choice 1)
(run ("Delete \"%s\" \"%s.info\" All" #dest #dest))
)
)
)
(makedir #dest
(help @makedir-help)
(infos)
)
;----------------------------
(copyfiles
(help @copyfiles-help)
(source ("BR_AGA.slave" @app-name))
(newname ("%s.slave" @app-name))
(dest #dest)
)
(if
(exists ("%s.newicon" @app-name))
(set #icon
(askchoice
(prompt "\nWhich icon do you like to install ?\n")
(default 0)
(choices "Normal" "NewIcon")
(help @askchoice-help)
)
)
(set #icon 0)
)
(select #icon
(set #icon ("%s.inf" @app-name))
(set #icon ("%s.newicon" @app-name))
)
(copyfiles
(help @copyfiles-help)
(source #icon)
(newname ("%s.info" @app-name))
(dest #dest)
)
(if
(exists #readme-file)
(copyfiles
(help @copyfiles-help)
(source #readme-file)
(dest #dest)
(infos)
)
)
(if
(exists ("%s.info" #readme-file))
(copyfiles
(help @copyfiles-help)
(source ("%s.info" #readme-file))
(dest #dest)
)
)
(if
(= #sub-dir "")
("")
(
(set #dest (tackon #dest #sub-dir))
(makedir #dest
(help @makedir-help)
)
)
)
(copyfiles
(help @copyfiles-help)
(source "RipDisk1.slave")
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source "RipDisk2.slave")
(dest #dest)
)
;----------------------------
(set #AD_disk "Intro_disk")
(P_disk)
(set #CI_diskno 1)
(while
(<= #CI_diskno #last-disk)
(
(set #CI_diskname ("%s Disk %ld" @app-name #CI_diskno))
(P_image)
(run ("FileNote Disk.%ld %s Quiet" #CI_diskno @app-name))
(set #CI_diskno (+ #CI_diskno 1))
)
)
(message "Now I need to rip the files from disk #1. Screen will go black until ripper finished his work.")
(run ("cd \"%s\"\nwhdload RipDisk1.slave WriteDelay=10\nDelete Disk.1 RipDisk1.slave ALL QUIET FORCE" #dest))
(copyfiles
(help @copyfiles-help)
(source ("%s:" #AD_disk))
(dest #dest)
(all)
)
(set #AD_disk "BR_Test")
(P_disk)
(set #CI_diskno 1)
(while
(<= #CI_diskno #last-disk)
(
(set #CI_diskname ("%s Disk %ld" @app-name #CI_diskno))
(P_image)
(run ("FileNote Disk.%ld %s Quiet" #CI_diskno @app-name))
(set #CI_diskno (+ #CI_diskno 1))
)
)
(message "Now I need to rip the files from disk #2. Screen will go black until ripper finished his work.")
(run ("cd \"%s\"\nwhdload RipDisk2.slave WriteDelay=10\nDelete Disk.1 RipDisk1.slave ALL QUIET FORCE" #dest))
(copyfiles
(help @copyfiles-help)
(source ("%s:" #AD_disk))
(dest #dest)
(all)
)
(set #AD_disk "Euro_Disk")
(P_disk)
(copyfiles
(help @copyfiles-help)
(source ("%s:" #AD_disk))
(dest #dest)
(all)
)
(copyfiles
(help @copyfiles-help)
(source ("%s:TITLE1.NJW" #AD_disk))
(newname ("EITLE1.NJW"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s:TITLE2.NJW" #AD_disk))
(newname ("EITLE2.NJW"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s:TITLE3.NJW" #AD_disk))
(newname ("EITLE3.NJW"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s:TITLE4.NJW" #AD_disk))
(newname ("EITLE4.NJW"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s:TITLE5.NJW" #AD_disk))
(newname ("EITLE5.NJW"))
(dest #dest)
)
(copyfiles
(help @copyfiles-help)
(source ("%s:TITLE6.NJW" #AD_disk))
(newname ("EITLE6.NJW"))
(dest #dest)
)
(set #AD_disk "USA_Disk")
(P_disk)
(copyfiles
(help @copyfiles-help)
(source ("%s:" #AD_disk))
(dest #dest)
(all)
)
(exit)